using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;

namespace Iprojects.Forms
{
    public partial class FormLogin2 : Form
    {
        #region CTOR
        public FormLogin2()
        {
            InitializeComponent();
        }
        #endregion

        #region events
        void AboutUtilityPack_Load(object sender, EventArgs e)
        {
            this.labelCompanyName.Text = this.AssemblyCompany;
            this.labelCopyright.Text = this.AssemblyCopyright;
            this.labelProductName.Text = this.AssemblyProduct;
            this.labelVersion.Text = this.AssemblyVersion;
            this.textBoxDescription.Text = this.AssemblyDescription;
        }

        void okButton_Click(object sender, EventArgs e)
        {
            base.Close();

        }
        #endregion

        #region assembly details functions
        public string AssemblyCompany
        {
            get
            {
                object[] objArray1 = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
                if (objArray1.Length == 0)
                {
                    return "";
                }
                return ((AssemblyCompanyAttribute)objArray1[0]).Company;
            }
        }
        public string AssemblyCopyright
        {
            get
            {
                object[] objArray1 = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
                if (objArray1.Length == 0)
                {
                    return "";
                }
                return ((AssemblyCopyrightAttribute)objArray1[0]).Copyright;
            }
        }
        public string AssemblyDescription
        {
            get
            {
                object[] objArray1 = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
                if (objArray1.Length == 0)
                {
                    return "";
                }
                return ((AssemblyDescriptionAttribute)objArray1[0]).Description;
            }
        }
        public string AssemblyProduct
        {
            get
            {
                object[] objArray1 = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
                if (objArray1.Length == 0)
                {
                    return "";
                }
                return ((AssemblyProductAttribute)objArray1[0]).Product;
            }
        }
        public string AssemblyTitle
        {
            get
            {
                object[] objArray1 = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
                if (objArray1.Length > 0)
                {
                    AssemblyTitleAttribute attribute1 = (AssemblyTitleAttribute)objArray1[0];
                    if (string.IsNullOrEmpty(attribute1.Title))
                    {
                        return attribute1.Title;
                    }
                }
                return Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
            }
        }

        public string AssemblyVersion
        {
            get
            {
                return Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }




        #endregion

    }
}